//
//  TextmasterAppDelegate.h
//  Textmaster
//
//  Created by Anshu Chimala on 12/31/09.
//  Copyright 2009 Home. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <Carbon/Carbon.h>
#import <ShortcutRecorder/ShortcutRecorder.h>
#import "TMWindow.h"

@interface TextmasterAppDelegate : NSObject {
    TMWindow *_window;
	NSSearchField *_searchField;
	
	KeyCombo _shortcut;
	EventHotKeyID _hotkeyID;
	EventHotKeyRef _hotkeyRef;
	EventTypeSpec _eventType;
}

@property (nonatomic, retain) IBOutlet TMWindow *window;
@property (nonatomic, assign) IBOutlet NSSearchField *searchField;

- (void)setKeyCombo:(KeyCombo)newKeyCombo;
- (void)toggleHidden;
- (void)synchronizeShortcut;

@end
